package com.kaoshi.myweb.webtest.job;

import java.util.Date;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.quartz.SchedulerException;
import org.quartz.SimpleTrigger;

public class SimpleTriggerJob implements Job {

	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		System.out.println("hello SimpleTriggerJob" + new Date()); 

		try {
			
			System.out.println("schedulerFactory schedulerContextAsMap属性值timeout:" + context.getScheduler().getContext().getString("timeout"));
		} catch (SchedulerException e) {
			e.printStackTrace();
		}
	}
	
	
	public void work() throws JobExecutionException {
		System.out.println("hello work" + new Date()); 
	}

}
